package com.ogawa.projectcommon.utils;

import com.ogawa.base.base.BaseApp;
import com.ogawa.projectcommon.R;

public class ConstantStringUtils {

    /*
     *获取性别
     */
    public static String getSex(String sex){
        if ("1".equals(sex)){
            return BaseApp.Companion.getAppContext().getString(R.string.male);
        }else {
            return BaseApp.Companion.getAppContext().getString(R.string.female);
        }
    }

    /*
     *  耐受程度  1,2,3对应轻，中，重
    */
    public static String getTolerance(String tolerance){
        if ("1".equals(tolerance)){
            return BaseApp.Companion.getAppContext().getString(R.string.tolerance_light);
        }else if ("2".equals(tolerance)){
            return BaseApp.Companion.getAppContext().getString(R.string.tolerance_medium);
        }else {
            return BaseApp.Companion.getAppContext().getString(R.string.tolerance_heavy);
        }
    }

}
